// db_printf(("Player %d claiming robot %d! Grovel before your master!\n", pnum, botnum));
if ((botnum > Highest_object_index) || (botnum < 0)) {
db_printf(( "Ignoring claim message for object I don't have.\n"));
// Int3(); // See rob
return;
}
if (Objects[botnum].type != OBJ_ROBOT) {
mprintf((1, "Got MYBOT message for non-Robot!\n"));
return;
}
if (Objects[botnum].ctype.ai_info.REMOTE_OWNER != -1)
{
mprintf((0, "Got a MYBOT message bot %d (%d) currently controlled by player %d.\n", botnum, remote_botnum, Objects[botnum].ctype.ai_info.REMOTE_OWNER));
if (MULTI_ROBOT_PRIORITY(remote_botnum, pnum) <= MULTI_ROBOT_PRIORITY(remote_botnum, Objects[botnum].ctype.ai_info.REMOTE_OWNER))
return;
}
// Perform the requested change
mprintf((0, "Player %d taking control of robot %d (%d).\n", pnum, botnum, remote_botnum));
if (Objects[botnum].ctype.ai_info.REMOTE_OWNER == Player_num)